-- GENERATED SPELL FOR [Tainted Water Elemental] --


function spell0_21253(pUnit, Event) --@Elemental Spawn-in,Self--
pUnit:FullCastSpellOnTarget(25035,pUnit)
pUnit:RegisterEvent('Sorts_21253', 534, 1)
end

function Sorts_21253(pUnit, Event)
local choix_sorts_21253 = math.random(0, 0)
if choix_sorts_21253 == 0 then
pUnit:RegisterEvent('spell0_21253', 1, 1)
end
end

function mob21253_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21253', math.random(1500, 3000), 1)
end

function mob21253_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21253_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21253_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21253, 1, 'mob21253_Action')
RegisterUnitEvent(21253, 2, 'mob21253_Leave')
RegisterUnitEvent(21253, 3, 'mob21253_Kill')
RegisterUnitEvent(21253, 4, 'mob21253_Die')
